﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="ServiceStationManagement_Delivery" Codebehind="Delivery.aspx.cs" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
        <div align="Justify">
        <h2>送货单</h2>
        <div class="menu_bg">订单编号：<asp:TextBox ID="txtOrderId" runat="server" Width="100px"></asp:TextBox>
        物流单号：<asp:TextBox ID="txtTranCode" runat="server" Width="100px"></asp:TextBox>
        收货人：<asp:TextBox ID="txtReceiver" runat="server" Width="100px"></asp:TextBox>
        固定电话：<asp:TextBox ID="txtPhone1" runat="server" Width="100px"></asp:TextBox>
        手机：<asp:TextBox ID="txtMobilePhone" runat="server" Width="100px"></asp:TextBox>
        代收款：<asp:DropDownList ID="DropDownList1" runat="server">
                <asp:ListItem Text="" Value="-1"></asp:ListItem>
                <asp:ListItem Text="是" Value="1"></asp:ListItem>
                <asp:ListItem Text="否" Value="0"></asp:ListItem>
            </asp:DropDownList>
        已送货：<asp:DropDownList ID="DropDownList2" runat="server">
                <asp:ListItem Text="" Value="-1"></asp:ListItem>
                <asp:ListItem Text="是" Value="1"></asp:ListItem>
                <asp:ListItem Text="否" Value="0"></asp:ListItem>
            </asp:DropDownList>
            <asp:Button ID="btnSearch" runat="server" CssClass="input_button" Text="查找" OnClick="btnSearch_Click" /></div>
         <div class="juli">
            <asp:DataList ID="dlistDelivery" runat="server" OnItemCommand="dlistDelivery_ItemCommand" OnItemDataBound="dlistDelivery_ItemDataBound" CellPadding="0">
                <HeaderTemplate>
                    <table class="tb2" border="0" cellpadding="0" cellspacing="1">
                        <tr class="z1">
                            <td class="zt3" width="100">
                                订单编号
                            </td>
                            <td class="zt3" width="70">
                                物流单号
                            </td>
                            <td class="zt3" width="80">
                                订单总金额
                            </td>
                            <td class="zt3" width="50">
                                代收款
                            </td>
                            <td class="zt3" width="50">
                                已送货
                            </td>
                            <td class="zt3" width="80">
                                收货人
                            </td>
                            <td class="zt3" width="70">
                                固定电话
                            </td>
                            <td class="zt3" width="70">
                                手机
                            </td>
                            <td class="zt3" width="50">
                                邮编
                            </td>
                            <td class="zt3" width="60">
                                省
                            </td>
                            <td class="zt3" width="60">
                                市
                            </td>
                            <td class="zt3" width="60">
                                区
                            </td>
                            <td class="zt3" width="160">
                                详细地址
                            </td>
                            <td class="zt3">
                               状态
                            </td>
                        </tr>
                    </table>
                </HeaderTemplate>
                <ItemTemplate>
                     <table width="1050" border="0" cellpadding="0" cellspacing="0">
                        <tr class="z2">
                            <td class="bk_left" width="100">
                                <%# Eval("ORDER_ID")%>&nbsp;
                            </td>
                            <td class="bk_middle" width="70">
                                &nbsp;<%# Eval("ORDER_TRANBILLCODE")%>&nbsp;
                            </td>
                            <td class="bk_middle" width="80">
                                <%# Eval("ORDER_AAMT")%>&nbsp;
                            </td>
                            <td class="bk_middle" width="50">
                                <asp:CheckBox ID="CheckBox5" runat="server" Checked=' <%# Convert.ToString(Eval("BYZD6"))=="1"?true:false %>' Enabled="false" />
                            </td>
                            <td class="bk_middle" width="50">
                                <asp:CheckBox ID="CheckBox1" runat="server" Checked=' <%# Convert.ToString(Eval("BYZD7"))=="1"?true:false %>' Enabled="false" />
                            </td>
                            <td class="bk_middle" width="80">
                                <%# Eval("ORDER_GETER")%>&nbsp;
                            </td>
                            <td class="bk_middle" width="70">
                                <%# Eval("ORDER_GETERPHONE1")%>&nbsp;
                            </td>
                            <td class="bk_middle" width="70">
                                <%# Eval("ORDER_GETERPHONE2")%>&nbsp;
                            </td>
                            <td class="bk_middle" width="50">
                                <%# Eval("ORDER_GETPOSTCODE")%>&nbsp;
                            </td>
                            <td class="bk_middle" width="60">
                                <%# Eval("province")%>&nbsp;
                            </td>
                            <td class="bk_middle" width="60">
                                <%# Eval("city")%>&nbsp;
                            </td>
                            <td class="bk_middle" width="60">
                                <%# Eval("area")%>&nbsp;
                            </td>
                            <td class="bk_middle" width="160">
                                <%# Eval("ORDER_GETADDRESS")%>&nbsp;
                            </td>
                            <td class="bk_middle">
                                <asp:Button ID="btnConfirmReceived" runat="server" Text="已送达" CssClass="input_button1" CommandName="received" CommandArgument='<%# Eval("ORDER_ID")%>' />
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:DataList></div>
            <div class="juli"><webdiyer:AspNetPager ID="AspNetPager1" runat="server" NumericButtonCount="8" ShowCustomInfoSection="left"
                PagingButtonSpacing="0" ShowInputBox="always" HorizontalAlign="Center" SubmitButtonText="转到"
                NumericButtonTextFormatString="[{0}]" OnPageChanged="AspNetPager1_PageChanged"
                FirstPageText="首页" InputBoxClass="1" InputBoxStyle="1" LastPageText="末页" NextPageText="下一页"
                PrevPageText="上一页" SubmitButtonClass="input_button">
            </webdiyer:AspNetPager></div>
        </div>
    </form>
</body>
</html>
